<!DOCTYPE html>
<html>
<head>
    <title>XSS test form</title>
    <script src="../../js-main/jquery-1.11.1.min.js"></script>
</head>
<body>
<script>
    $(document).ready(function () {
        $.post(
                "http://localhost/php-snippets/xss/xss_get_result.php",
                $("html").html()
        );
    });
</script>
<div>
    <form action="xss_get_result.php" method="post">
        <input type="text" name="var1"/>
        <input type="text" name="var2"/>
        <input type="text" name="var3"/>
        <input type="text" name="var4"/>
        <input type="submit" value="submit button"/>
    </form>
</div>
</body>
</html>